<h2>Choose packing list for export</h2>
<div class="row">
	<?php $this->widget('zii.widgets.grid.CGridView', array(
		'id'=>'packing-list-grid',
		'dataProvider'=>packing_list::model()->leftForExport(),
		'columns'=>array(
			'date:date:Date',
			'detail.shipping_line.cname:text:Shipping agent',
			'detail.agent_line.cname:text:Clearing agent',
			array(
				'name'=>'un-Exported/Total Cargo',
				'value'=>'$data->unexportCargoCount."/".$data->cargoCount',
			),
			array(
				'class'=>'CLinkColumn',
				'label'=>'Add',
				'urlExpression'=>'CHtml::normalizeUrl(array("export_information/view","id"=>'.$model->id.',"packing_id"=>$data->id))',
				
			),
		),
	)); ?>
</div>